<?php
class Zend_Controller_Action_Helper_Logged extends Zend_Controller_Action_Helper_Abstract
{
	public function getUserId(){
		$auth = Zend_Auth::getInstance();
		if($auth->hasIdentity()){
			return $auth->getIdentity()->id;			
		}
		else {
			return null;
		}
	}
}